package com.bba.manager.sku.service.impl;


import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.bba.manager.common.model.sku.Series;
import com.bba.manager.sku.mapper.SeriesMapper;
import com.bba.manager.sku.service.ISeriesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author SYANDZZY
 * @since 2025-08-12
 */
@Service
public class SeriesServiceImpl extends ServiceImpl<SeriesMapper, Series> implements ISeriesService {

    @Override
    public List<Series> querySeriesByBrandId(Integer brandId) {
        LambdaQueryChainWrapper<Series> wrapper=new LambdaQueryChainWrapper<>(baseMapper);
        return wrapper.eq(Series::getBrandId, brandId).list();
    }
}
